import { SETREADTSTATE, DELMSG, SETALLREAD } from './actionTypes.js'

// 设置消息已读
const setMsgRead = (index)=>{
  return {
    type: SETREADTSTATE,
    index
  }
}
// 删除消息
const delMsg = (index)=>{
  return {
    type: DELMSG,
    index
  }
}
// 全部已读
const setAllRead = ()=>{
  return {
    type: SETALLREAD
  }
}

export {
  setMsgRead,
  delMsg,
  setAllRead
}